package com.github_dididipapa.mall.product.dto;

import cn.hutool.core.bean.BeanUtil;
import com.github_dididipapa.mall.product.entity.AttrEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


@Data
@NoArgsConstructor
@AllArgsConstructor
public class AttrDto {
    private Long attrId;
    private String attrName;
    private Integer attrType;
    private Long catelogId;
    private String catelogName;
    private Long attrGroupId;
    private String groupName;
    private Integer enable;
    private String icon;
    private Integer searchType;
    private Integer showDesc;
    private String valueSelect;
    private Integer valueType;

    public AttrDto(AttrEntity attrEntity) {
        BeanUtil.copyProperties(attrEntity, this);
    }
}
